<?php
Route::group([
	'prefix' => 'good',
	'namespace' => 'Good'
], function () {
	Route::group([
		'prefix' => 'goods',
	], function () {
		// 用户管理列表
		Route::get('/', 'GoodsController@index')->name('admin.good.goods');
		Route::get('/goodshen', 'GoodsController@goodshen')->name('admin.good.goodshen');
		// 添加用户
		Route::get('/add', 'GoodsController@add')->name('admin.good.goods.add');
		// 编辑用户
		Route::get('/edit/{id}', 'GoodsController@edit')->name('admin.good.goods.edit');
		Route::get('/comments/{id}', 'GoodsController@comments')->name('admin.good.goods.comment');
        Route::get('/comment_add/{id}', 'GoodsController@comment_add')->name('admin.good.goods.comment_add');
        Route::get('/comment_shen/{id}', 'GoodsController@comment_shen')->name('admin.good.goods.comment_shen');
        Route::get('/comment_delete/{id}', 'GoodsController@comment_delete')->name('admin.good.goods.comment_delete');
        Route::post('/comment_save', 'GoodsController@comment_save')->name('admin.good.goods.comment_save');
        Route::post('/comment_refund', 'GoodsController@comment_refund')->name('admin.good.goods.comment_refund');
		// 保存用户信息
		Route::post('/save', 'GoodsController@save')->name('admin.good.goods.save');
		// 删除用户
		Route::get('/delete/{id}', 'GoodsController@delete')->name('admin.good.goods.delete');
		Route::get('/recommend/{id}', 'GoodsController@recommend')->name('admin.good.goods.recommend');
		Route::get('/change/{id}', 'GoodsController@change')->name('admin.good.goods.change');
		//审核店铺页面
        Route::get('/shen/{id}', 'GoodsController@shen')->name('admin.good.goods.shen');
        //审核提交接口
        Route::post('/refund','GoodsController@refund')->name('admin.good.goods.refund');

	});
});